using System.Windows;
using System.Windows.Markup;
using SSettings;

namespace MainView.Windows
{
	public partial class GridColumnEditWindow : Window, IComponentConnector
	{
		public GridColumnEditWindow()
		{
			InitializeComponent();
		}

		private void btnDefault_Click(object sender, RoutedEventArgs e)
		{
			GridColumns girdColumnsCloneByColumn = ConfigSettings.GetInstance().GetGirdColumnsCloneByColumn(uCPatientColumnEdit.GridColumns);
			uCPatientColumnEdit.GridColumns = girdColumnsCloneByColumn;
			base.DataContext = girdColumnsCloneByColumn;
		}

		private void btnOK_Click(object sender, RoutedEventArgs e)
		{
			base.DialogResult = true;
			Close();
		}
	}
}
